package datastructure.generator;

import datastructure.SuffixTree;

public class SuffixTreeGenerator {
	private static SuffixTreeGenerator generator = new SuffixTreeGenerator();
	private SuffixTreeGenerator(){
		
	}
	
	public static SuffixTreeGenerator getInstance(){
		return generator;
	}
	
	public SuffixTree buildSuffixTree(String input){
		return new SuffixTree(input);
	}
	
	public SuffixTree buildSuffixTree(String input,SuffixTree tree){
		tree.buildTree(input);
		return tree;
	}
}
